<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html> 
<head>
<title>CST Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile-1.2.0-beta.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile-1.2.0-beta.1.min.js"></script>
</head>
<body>
 	<div data-role="page" align="center">
 		<center style="color:red">
		  <c:if test="${pageContext.request.queryString == 'login_failed'}">
		    <div><fmt:message key="loginerror.invalid" /></div>
		  </c:if> 
		</center>
		<form name="LoginForm" id="login" action="j_spring_security_check" method="POST" data-ajax="false"> 		
			<table border="0">
			  <tr>
			    <td colspan="2" align="center"><img src="images/calcetto.gif" border="0"/><br/>
			  </tr>
			  <tr>
			    <td align="right"><span>Username</span>&nbsp;&nbsp;</td>
			    <td><input name="j_username" type="text"/></td>
			  </tr>
			  <tr>
			    <td align="right"><span>Password&nbsp;</span>&nbsp;</td>
			    <td><input name="j_password" type="password"/></td>
			  </tr>
			  <tr>
			    <td colspan="2" align="center">
			      <input type="submit" value="Login"/>     
			    </td>
			  </tr>
			</table>
		</form>
	</div>
</body>
</html>